package patrol.mobile.com.mobilepatrol.activity.security.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.Ensure2Bean;

/**
 * Created by fuzhen.li on 2018/11/13.
 */
public class DuiWuAdapter extends BaseQuickAdapter<Ensure2Bean.AbkSupportBaseRanksListBean> {
    public DuiWuAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_duiwu;
    }

    @Override
    protected void convert(BaseViewHolder holder, Ensure2Bean.AbkSupportBaseRanksListBean item) {
        holder.setText(R.id.tv_num, (holder.getLayoutPosition() + 1) + "");
        holder.setText(R.id.tv_du_ranksName, item.getRanksName());
        holder.setText(R.id.tv_du_ranksAmount, item.getRanksAmount());
        holder.setText(R.id.tv_ranksUnit, item.getRanksUnit());
        holder.setText(R.id.tv_ranksHeader, item.getRanksHeader());
        holder.setText(R.id.tv_ranksPost, item.getRanksPost());
        holder.setText(R.id.tv_ranksContact, item.getRanksContact());
    }
}
